package com.ruoyi.cems.mapper;

import com.ruoyi.cems.domain.BmsEmergencyVariableControl;
import com.ruoyi.cems.domain.dto.BmsEmergencyVariableControlDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 变量控制;Mapper接口
 * 
 * @author ruoyi
 * @date 2024-06-24
 */
public interface BmsEmergencyVariableControlMapper 
{
    /**
     * 查询变量控制;
     * 
     * @param ID 变量控制;主键
     * @return 变量控制;
     */
    public BmsEmergencyVariableControl selectBmsEmergencyVariableControlByID(String ID);
    /**
     * 查询变量控制;
     *
     * @param taskNo 变量控制;主键
     * @return 变量控制;
     */
    public BmsEmergencyVariableControl selectBmsEmergencyVariableControlByTaskNo(String taskNo);

    /**
     * 查询变量控制;列表
     * 
     * @param bmsEmergencyVariableControl 变量控制;
     * @return 变量控制;集合
     */
    public List<BmsEmergencyVariableControl> selectBmsEmergencyVariableControlList(BmsEmergencyVariableControlDTO bmsEmergencyVariableControl);

    /**
     * 新增变量控制;
     * 
     * @param bmsEmergencyVariableControl 变量控制;
     * @return 结果
     */
    public int insertBmsEmergencyVariableControl(BmsEmergencyVariableControl bmsEmergencyVariableControl);

    /**
     * 修改变量控制;
     * 
     * @param bmsEmergencyVariableControl 变量控制;
     * @return 结果
     */
    public int updateBmsEmergencyVariableControl(BmsEmergencyVariableControl bmsEmergencyVariableControl);

    /**
     * 删除变量控制;
     * 
     * @param ID 变量控制;主键
     * @return 结果
     */
    public int deleteBmsEmergencyVariableControlByID(String ID);

    /**
     * 批量删除变量控制;
     * 
     * @param IDs 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBmsEmergencyVariableControlByIDs(String[] IDs);

    int selectBmsEmergencyVariableControlCount(
            @Param("start_time") String start_time,
            @Param("end_time") String end_time);

    int updateBmsEmergencyVariableStatus();
}
